package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * ClassName: OrderDetailMapper
 * Package: com.sky.mapper
 * Description:
 *
 * @Autehor 屈子岩
 * @Create 2024/10/13 10:59
 * @Version 1.0
 */
@Mapper
public interface OrderDetailMapper {

    List<OrderDetail> getByOrderId(Long id);

    @Select("select * from order_detail where order_id = #{id}")
    List<OrderDetail> selectByOrderId(Long id);

    void insertBath(List<OrderDetail> orderDetailList);
}
